package com.huawei.esdk.uc.jna.struct;

import java.util.ArrayList;
import java.util.List;

import com.huawei.esdk.uc.jna.Constants;
import com.huawei.esdk.uc.jna.util.StringUtil;
import com.sun.jna.Structure;

public class STMsgAVSessionClosedParam extends Structure
{

    public byte[] callerUri = new byte[Constants.STRING_LENGTH]; // 对方号码

    public byte[] AVSessionId = new byte[Constants.STRING_LENGTH];//会话id

    public byte[] reason = new byte[Constants.STRING_LENGTH]; // 错误码

    @Override
    protected List<String> getFieldOrder()
    {
        List<String> list = new ArrayList<String>();
        list.add("callerUri");
        list.add("AVSessionId");
        list.add("reason");
        return list;
    }

    public String getCallerUri()
    {
        return StringUtil.bytesToString(callerUri);
    }
    
    public String getAVSessionId()
    {
        return StringUtil.bytesToString(AVSessionId);
    }
    public String getReason()
    {
        return StringUtil.bytesToString(reason);
    }
}
